Build Your Own Car Dashboard with a Raspberry Pi by Joseph Coburn

Build Your Own Car Dashboard with a Raspberry Pi by Joseph Coburn

Author:Joseph Coburn
Language: eng
Format: epub
ISBN: 9781484260807
Publisher: Apress


Keeping Code Updated

All of these methods of getting the code onto your Pi rely on some kind of Git command to perform the work. Here’s how to write a script to do this for you, which you can then run whenever you’d like to update the Pi’s code.

Back on your desktop computer, create a bash file at the top level of your project folder and call it clone.sh:touch clone.sh

This script will handle all aspects of pulling the latest code from Git. You don’t have to add it to your repo if you’d prefer not to – it can live on the Pi, no problem. Here’s the code you need:#!/bin/bash

# Update to the latest code

git checkout master && git pull



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.